package pa1;

public class Test {
    public static void main(String[] args){

        Person person1 = new Person(16,"张三");
        System.out.println(person1);

        Person person2 = new Person(16,"张三");
        System.out.println(person2);

        System.out.println(person1 == person2);

        System.out.println(person1.equals(person2));

        System.out.println(person1.hashCode());
        System.out.println(person2.hashCode());

    }
}
